<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/26
 * Time: 14:14
 */

/**
 * Class Involved_UserModel
 */

class Involved_UserModel extends BaseModel{

    protected $table = 'user';

    public function ManageUserList()
    {
        return DB::table($this->table)
            ->get();
    }


    public function GetUserInfo($id)
    {

        return DB::table($this->table)->where('user_id',$id)->first();
    }
     
    /**
     * 根据用户id更新用户信息
     * @param int $user_id
     * @param array $data
     * @param mixed
     */
    public function updateByUserId($user_id, $data) 
    {
        return DB::table($this->table)->where(['user_id' => $user_id])->update($data);
   	}




}